package com.ruoyi.products.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.productimages.domain.Productimages; // 假设这是你的 Productimages 类

import java.util.List;

/**
 * 商品对象 CombineProductData
 * 该类表示合并的商品数据，包含商品的各种属性、规格和相关信息。
 * Date:2024/7/2
 * Author：顾雁影
 */
public class CombinedProductData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 合并数据id */
    private Long combinedId;

    /** 商店id */
    private Long storeId;

    /** 商品id */
    private Long productId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String productName;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String productType;

    /** 商品描述 */
    private String productDescription;

    /** 商品logo */
    private String productLogo;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Double productPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Integer productStock;

    public List<Productimages> getProductImages() {
        return productImages;
    }

    public void setProductImages(List<Productimages> productImages) {
        this.productImages = productImages;
    }

    // 添加的 productImages 属性
    private List<Productimages> productImages;
    // Getters and Setters

    public Long getCombinedId() {
        return combinedId;
    }

    public void setCombinedId(Long combinedId) {
        this.combinedId = combinedId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }


    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getProductLogo() {
        return productLogo;
    }

    public void setProductLogo(String productLogo) {
        this.productLogo = productLogo;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public Integer getProductStock() {
        return productStock;
    }

    public void setProductStock(Integer productStock) {
        this.productStock = productStock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("combinedId", getCombinedId())
                .append("storeId", getStoreId())
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("productType", getProductType())
                .append("productDescription", getProductDescription())
                .append("productLogo", getProductLogo())
                .append("productPrice", getProductPrice())
                .append("productStock", getProductStock())
                .toString();
    }
}
